class CardListItem extends CardValueItem {
    public cardImg: eui.Image;
    public constructor() {
        super();
        this.skinName = "CardListItemSkin";
    }
    public dataChanged(): void {
        this.currentState = "up";
        var lordCards: string = this.parent["lordCards"];
        this.cardImg.source = this.data && this.data != '0' ? this.getCardTexture(this.data) : "card_0_png";
        if (lordCards && lordCards.indexOf(this.data) != -1) {//如果是确定地主后加的牌
            var oldY = this.cardImg.y;
            this.cardImg.y -= 30;
            egret.Tween.get(this.cardImg).wait(500).to({ y: oldY }, 800, egret.Ease.circOut).call(this.onEffectOver, this);
        }
    }
    private onEffectOver(): void {
        (how.Application.currentScene as DDZGameSceneView).canPrompt = true;
    }
}
